package com.eas.web.home.utils;

import com.eas.biz.constants.UserTypeEnum;

public class UserTypeTool {

    public static boolean isStudent(UserTypeEnum type) {
        return type != null && UserTypeEnum.STUDENT.equals(type);
    }

    public static boolean isTeacher(UserTypeEnum type) {
        return type != null && UserTypeEnum.TEACHER.equals(type);
    }

    public static boolean isCommittee(UserTypeEnum type) {
        return type != null && UserTypeEnum.COMMITTEE.equals(type);
    }
}
